<?php

switch ($_SESSION['where']){
	case 'main': switch($_SESSION['view']){
		case 'home': 	{include "includes/table-main-entry.html"; break;}
		case 'entry':	{include "includes/view-entry.html"; break;}
		case 'comments':{include "includes/table-main-comment.html"; break;}
	}
	case 'admin': switch($_SESSION['view']){
		case 'entries': {include "includes/table-admin-entry.html"; break;}
		case 'users':	{include "includes/table-admin-user.html"; break;}
		case 'edit':	{include "includes/edit-entry.html"; break;}
	}
}

?>